package com.qianf.qfoffice.service;

import com.qianf.qfoffice.entity.Exercises;

import java.util.List;

public interface ExercisesService {
    /**
     * 增加习题
     * @param exercises
     * @return
     */
    public boolean addExercises(Exercises exercises);

    /**
     * 展示所有习题
     */
    public List<Exercises> selectExercises(Integer page,Integer limit);

    /**
     * 根据id删除相应的练习题
     * @param id
     * @return
     */
    public boolean deleteExerciseById(int id);

    /**
     * 根据id查询习题信息
     * @param id
     * @return
     */
    public Exercises selectExerciseById(int id);
}
